<?php
    if ( isset($result['Activity']['name']) ) {
        echo $result['Activity']['name'];
    }
?>